'use strict';

const express = require('express');
const deliverInfoController = require('../../app/controllers/deliverInfo.controller');

module.exports = (app) => {
    app.route('/deliverInfo/addDeliverInfoByClient')
    .post(deliverInfoController.addDeliverInfoByClient);

    app.route('/deliverInfo/getDeliverInfoByClient/:cid')
    .get(deliverInfoController.getDeliverInfoByClient);

    app.route('/deliverInfo/updateDeliverInfo')
    .post(deliverInfoController.updateDeliverInfo);

    app.route('/deliverInfo/deleteDeliverInfoById/:id')
    .get(deliverInfoController.deleteDeliverInfoById);

}
